package com.qianyu.project.service;

import com.qianyu.project.entity.SystemAuthority;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author gs
 * @date create in 2020/12/24 8:07
 */
public interface ISystemAuthorityService {

    /**
     * description: 根据模块名称查询 <br/>
     * author: gs   <br/>
     * date: 2021/1/12 <br/>
     * params: [authorityName] <br/>
     * return: com.qianyu.legal.entity.SystemAuthority
     */
    SystemAuthority getByAuthorityName(String authorityName);

    /*
     * description: 查询所有模块 排除流程拥有的    <br/>
     * author: mfy   <br/>
     * date:  <br/>
     * params:  <br/>
     * return:
     */
    List<SystemAuthority> listAndFlow();

    /*
     * description: 查询所有模块 排除流程拥有的  不包括自己  <br/>
     * author: mfy   <br/>
     * date:  <br/>
     * params:  <br/>
     * return:
     */
    List<SystemAuthority> getUpdateauthority(Integer moduleid);

    List<SystemAuthority> getByRole(String role);

    List<SystemAuthority> getRootList();
}
